package print

import (
	"github.com/fatih/color"
	"github.com/spf13/cobra"
)

// 打印浅蓝色消息的命令
var hiblueCmd = &cobra.Command{
	Use:   "hiblue",
	Short: "打印浅蓝色的消息",
	Long:  "通过该命令，可以在终端输出浅蓝色的消息",
	Run: func(cmd *cobra.Command, args []string) {
		count := len(args)
		color.HiBlue("传入了%d个参数", count)
		for i, v := range args {
			color.HiBlue("第%d个：%s", i+1, v)
		}
	},
}

func init() {
	RootPrintCmd.AddCommand(hiblueCmd)
}